package com.audaque.springboot.foshanupload.schedule.model.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.*;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.NoArgsConstructor;


/**
 * <p>
 *
 *
 * </p>
 *
 * @author zgb
 * @since 2022-04-17
 */
@Schema(description = "")
@TableName("dynamic_schedule")
@Data

@NoArgsConstructor
@AllArgsConstructor

public class DynamicScheduleMpgtDo {

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(description = "周期表达式")
    @TableField(value = "cron")
    private String cron;

    @Schema(description = "是否有效")
    @TableField(value = "open")
    private Integer open;

    @Schema(description = "任务方法表达式")
    @TableField(value = "reference")
    private String reference;


}
